<?php

namespace app\models\user\gr;

use Yii;

/**
 * This is the model class for table "{{%users_base_gr}}".
 *
 * @property int $id
 * @property int $uid 用户UID
 * @property string|null $name 姓名
 * @property int|null $sex 法人性别：1男，2女
 * @property string|null $zhuanye 专业
 * @property string|null $jiguan 籍贯
 * @property int $tizhong 体重
 * @property string|null $minzu 民族
 * @property int|null $gongzuonianxian 工作年限
 * @property string|null $zhengzhimianmao 政治面貌
 * @property string|null $hukoudizhi 户口地址
 * @property int|null $visible 0表示隐藏,1表示显示,和功能开关对应
 * @property int|null $time 创建时间
 * @property string|null $xianzhudizhi 现住地址
 * @property string|null $jinjilianxiren 紧急联系人
 * @property string|null $jinjilianxirendianhua 紧急联系人电话
 * @property int|null $hunyinzhuangtai 婚姻状态
 * @property int|null $chushengnianyue 出生年月
 */
class UsersBaseGrModel extends \app\models\BaseUserModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%users_base_gr}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['uid', 'sex', 'tizhong', 'gongzuonianxian', 'visible', 'time', 'hunyinzhuangtai', 'chushengnianyue'], 'integer'],
            [['name', 'zhuanye'], 'string', 'max' => 100],
            [['jiguan'], 'string', 'max' => 20],
            [['minzu', 'zhengzhimianmao', 'xianzhudizhi', 'jinjilianxiren', 'jinjilianxirendianhua'], 'string', 'max' => 255],
            [['hukoudizhi'], 'string', 'max' => 3],
            [['uid'], 'unique'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => 'Uid',
            'name' => 'Name',
            'sex' => 'Legal Sex',
            'zhuanye' => 'Zhuanye',
            'jiguan' => 'Jiguan',
            'tizhong' => 'Tizhong',
            'minzu' => 'Minzu',
            'gongzuonianxian' => 'Gongzuonianxian',
            'zhengzhimianmao' => 'Zhengzhimianmao',
            'hukoudizhi' => 'Hukoudizhi',
            'visible' => 'Visible',
            'time' => 'Time',
            'xianzhudizhi' => 'Xianzhudizhi',
            'jinjilianxiren' => 'Jinjilianxiren',
            'jinjilianxirendianhua' => 'Jinjilianxirendianhua',
            'hunyinzhuangtai' => 'Hunyinzhuangtai',
            'chushengnianyue' => 'Chushengnianyue',

           // 'lng' => 'lng',///lng和lat
         //   'lat' => 'lat',
        ];
    }
}
